#ifndef FSXWEBSERVICEHELPER_H
#define FSXWEBSERVICEHELPER_H

#include <QDir>
#include <QString>
#include <QSettings>
#include <QtGui/QApplication>

namespace FsxWebService {

//! Helper methods for the FsxWebService
class FsxWebServiceHelper
{
public:
    //! Update the settings.
    /*! \param port change the port
        \return success? */
    static bool updateSettings(const int port);
    //! Get the (few) settings which are editable.
    /*! \param port get the port
        \return success? */
    static bool getEditableSettings(int &port);
    //! File name / path of config file.
    /*! \return file path and name */
    static QString getConfigFilename();
    //! Config file contents as string.
    /*! \return ini file contents */
    static QString getConfigFile();
};
}
#endif // FSXWEBSERVICEHELPER_H
